package com.example.meitu.api.controller;

import cn.hutool.json.JSONObject;
import com.example.meitu.api.common.Result;
import com.example.meitu.api.common.UserContext;
import com.example.meitu.api.common.UserLoginContextHolder;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/user")
public class UserController {

    @GetMapping("/userInfo")
    public Result userInfo() {
        return Result.success(UserLoginContextHolder.get());
    }

}
